package qotwReader.parseInput.exceptions;

import qotwReader.parseInput.Command;

public class UnknownArgumentException extends Exception
{
    private static final long serialVersionUID = 346305698576749489L;
    
    public UnknownArgumentException(String arg, Command cmd)
    {
        super(
                "Unknown command ('" + arg + "') given to command " + cmd.getCommandString() + "\n" +  
                "Valid commands are \n" +
                cmd.getValidArgsString()
        );
    }
}
